// components/remove/remove.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    hidden: {
      type: Boolean,
      value: true
    },
    bookId: {
      type: Number,
      value: 0
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
    isselect: false
  },

  /**
   * 组件的方法列表
   */
  methods: {
    toggleSelect: function(){
      var myEventDetail = {
        "action": !this.data.isselect,
        "bookid": this.data.bookId
      };
      this.triggerEvent('toggleSelect', myEventDetail);
      this.setData({
        isselect: !this.data.isselect
      });
    }
  }
})
